package xyz.syyrjx.blog.service;


import xyz.syyrjx.blog.entity.Blog;

import java.util.List;
import java.util.Map;

public interface BlogService {
    public int countBlogs(String search,Long type);
    public List<Blog> queryBlogs(Blog template,Integer page);
    public Blog queryAndConvert(Long id);
    public List<Blog> queryAllBlogs();
    public Map<String,List<Blog>> getArchives();
    public List<Blog> queryBlogInPage(Integer page);
    public List<Blog> queryBlogByTypeInPage(Integer page,Long typeId);
    public List<Blog> likeQueryBlogInPage(Integer page,String search);
    public void addBlog(Blog blog);
    public boolean deleteBlogById(Long id);
    public boolean updateBlog(Blog blog);
    public boolean updateView(Blog blog);
}
